package com.bosi;

import com.bosi.ws.server.FastNettyWebSocketServer;
import com.bosi.ws.server.WebSocketSession;

/**
 * 入门示例
 */
public class Main {

    public static void main(String[] args) {
        new FastNettyWebSocketServer(){
            @Override
            public void onMessage(WebSocketSession session, String message) {
                System.out.println("收到:" + message);
                send(session,"收到,over");
            }
        }.start(8080);
    }
}
